<?php
/**
 * Created by PhpStorm.
 * User: shibing
 * Date: 2018/9/12
 * Time: 17:03
 */

namespace app\http\middleware;
class Check{
    public function handle($request, \Closure $next)
    {
        if ($request->param('name') == 'zhou') {
            return redirect('hello/m');
        }
        return $next($request);
    }
}